<?php
namespace app\admin\controller;

class Logout extends Base {

    public function index() {
        //清除session
        session(config("admin.session_user"), null);

        return redirect(url("login/index"));
    }
}